From: Jan Beulich Date: Tue, 5 Apr 2016 11:24:40 +0000 (+0200) Subject: x86/HVM: remove dead code X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1387 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=89e97251ce1e56b54d77981105eaaf7270314cbf;p=xen.git x86/HVM: remove dead code With commit 96ae556569 ("x86/HVM: fix forwarding of internally cached requests") rc doesn't change anymore in the respective preceding switch() statements. Coverity ID: 1358080 Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/hvm/intercept.c b/xen/arch/x86/hvm/intercept.c index 3a7a7dd33a..d5cb96c159 100644 --- a/xen/arch/x86/hvm/intercept.c +++ b/xen/arch/x86/hvm/intercept.c @@ -151,8 +151,6 @@ int hvm_process_io_intercept(const struct hvm_io_handler *handler, domain_crash(current->domain); return X86EMUL_UNHANDLEABLE; } - if ( rc != X86EMUL_OKAY ) - break; } else p->data = data; @@ -181,8 +179,6 @@ int hvm_process_io_intercept(const struct hvm_io_handler *handler, domain_crash(current->domain); return X86EMUL_UNHANDLEABLE; } - if ( rc != X86EMUL_OKAY ) - break; } else data = p->data;